NAVNavbar
Logo
cURL php NodeJS Python cSharp

Live Google Events SERP Advanced

‌‌
Live Google Events SERP provides real-time data from Google Events Search for the specified keyword and location. Note that Google Events SERP API works for the English language only.

Instead of ‘login’ and ‘password’ use your credentials from https://app.dataforseo.com/api-dashboard

<?php
// You can download this file from here https://cdn.dataforseo.com/v3/examples/php/php_RestClient.zip
require('RestClient.php');
$api_url = 'https://api.dataforseo.com/';
try {
	// Instead of 'login' and 'password' use your credentials from https://app.dataforseo.com/api-dashboard
	$client = new RestClient($api_url, null, 'login', 'password');
} catch (RestClientException $e) {
	echo "n";
	print "HTTP code: {$e->getHttpCode()}n";
	print "Error code: {$e->getCode()}n";
	print "Message: {$e->getMessage()}n";
	print  $e->getTraceAsString();
	echo "n";
	exit();
}
$post_array = array();
// You can set only one task at a time
$post_array[] = array(
        "location_name" => "Los Angeles,California,United States",
        "date_range" => "today",
        "keyword" => mb_convert_encoding("concerts")
);
try {
	// POST /v3/serp/google/events/live/advanced
	// in addition to 'google' and 'organic' you can also set other search engine and type parameters
	// the full list of possible parameters is available in documentation
	$result = $client->post('/v3/serp/google/events/live/advanced', $post_array);
	print_r($result);
	// do something with post result
} catch (RestClientException $e) {
	echo "n";
	print "HTTP code: {$e->getHttpCode()}n";
	print "Error code: {$e->getCode()}n";
	print "Message: {$e->getMessage()}n";
	print  $e->getTraceAsString();
	echo "n";
}
$client = null;
?>

The above command returns JSON structured like this:

{
    "version": "0.1.20221214",
    "status_code": 20000,
    "status_message": "Ok.",
    "time": "6.1915 sec.",
    "cost": 0.002,
    "tasks_count": 1,
    "tasks_error": 0,
    "tasks": [
        {
            "id": "01131917-1535-0139-0000-0cd97591018c",
            "status_code": 20000,
            "status_message": "Ok.",
            "time": "6.0518 sec.",
            "cost": 0.002,
            "result_count": 1,
            "path": [
                "v3",
                "serp",
                "google",
                "events",
                "live",
                "advanced"
            ],
            "data": {
                "api": "serp",
                "function": "live",
                "se": "google",
                "se_type": "events",
                "keyword": "concerts",
                "location_name": "Los Angeles,California,United States",
                "date_range": "today",
                "device": "desktop",
                "os": "windows"
            },
            "result": [
                {
                    "keyword": "concerts",
                    "type": "events",
                    "se_domain": "google.com",
                    "location_code": 1013962,
                    "language_code": "en",
                    "check_url": "https://www.google.com/search?q=concerts&ibp=htl;events&gl=US&uule=w+CAIQIFISCRPaJ9xdx8KAEfQIRiVv3y_i&hl=en#htivrt=events&htichips=date:today",
                    "datetime": "2023-01-13 17:18:01 +00:00",
                    "spell": null,
                    "item_types": [
                        "event_item"
                    ],
                    "se_results_count": 0,
                    "items_count": 10,
                    "items": [
                        {
                            "type": "event_item",
                            "rank_group": 1,
                            "rank_absolute": 1,
                            "position": "right",
                            "xpath": "/div[1]/div[1]/div[1]/ul[1]/li[1]",
                            "title": "The Temptations",
                            "description": "The Temptations, often referred to as “American Music Royalty,” are world-renowned superstars of entertainment, revered for their phenomenal catalog of music and prolific career. The group... Read more on Where Music Meets The Soul",
                            "url": "https://wheremusicmeetsthesoul.com/events/the-temptations-beverly-hills-jan-2023/",
                            "image_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSvNQG19cHGsymkHKJGD3Sdw92u0HaRzTkohZjOTz8J-hpJyfxDGGPWr_geifM&s=10",
                            "event_dates": {
                                "start_datetime": null,
                                "end_datetime": "2023-01-13T00:00:00+00:00",
                                "displayed_dates": "Fri, Jan 13, 8 – 10 PM"
                            },
                            "location_info": {
                                "name": "Saban Theatre",
                                "address": "8440 Wilshire Blvd, Beverly Hills, CA",
                                "url": "https://www.google.com/maps/place//data=!4m2!3m1!1s0x80c2b9460c894db5:0xc07adc32e08ea673?sa=X&hl=en&gl=US",
                                "cid": "13869640113514784371",
                                "feature_id": "0x80c2b9460c894db5:0xc07adc32e08ea673"
                            },
                            "information_and_tickets": [
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Axs.com",
                                    "description": "TICKETS",
                                    "url": "https://www.axs.com/events/436377/the-temptations-tickets",
                                    "domain": "www.axs.com"
                                },
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Where Music Meets The Soul",
                                    "description": "MORE INFO",
                                    "url": "https://wheremusicmeetsthesoul.com/events/the-temptations-beverly-hills-jan-2023/",
                                    "domain": "wheremusicmeetsthesoul.com"
                                },
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Discover Los Angeles",
                                    "description": "MORE INFO",
                                    "url": "https://www.discoverlosangeles.com/event/2023/01/13/the-temptations",
                                    "domain": "www.discoverlosangeles.com"
                                },
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Community calendar | KTLA",
                                    "description": "MORE INFO",
                                    "url": "https://ktla.com/community-calendar-ktla/?/calendar/&EventID=5602520#!/details/The-Temptations/10470572/2023-01-13T20",
                                    "domain": "ktla.com"
                                },
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Expedia",
                                    "description": "MORE INFO",
                                    "url": "https://www.expedia.com/event-tickets/event/the-temptations-tickets-saban-theatre-beverly-hills-ca-1-13-2023-5180903",
                                    "domain": "www.expedia.com"
                                }
                            ]
                        },
                        {
                            "type": "event_item",
                            "rank_group": 2,
                            "rank_absolute": 2,
                            "position": "right",
                            "xpath": "/div[1]/div[1]/div[1]/ul[1]/li[2]",
                            "title": "Jack White",
                            "description": "Jack White FRI, Jan 13, 2023 @ 7:00 PM The Belasco, Los Angeles, CA Read more on Live Nation",
                            "url": "https://www.livenation.com/event/vvG10Z9x97ySQG/jack-white",
                            "image_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSrpjaXNOdLC5-klrSl_YNO5C7UUw-dBc8XL3K6CiGqXu4k7bnPcR42sHtveQ&s=10",
                            "event_dates": {
                                "start_datetime": null,
                                "end_datetime": "2023-01-13T00:00:00+00:00",
                                "displayed_dates": "Fri, Jan 13, 7 – 11 PM"
                            },
                            "location_info": {
                                "name": "The Belasco",
                                "address": "1050 S Hill St, Los Angeles, CA",
                                "url": "https://www.google.com/maps/place//data=!4m2!3m1!1s0x80c2c7c9657d7e4f:0xd785c19a71b23a97?sa=X&hl=en&gl=US",
                                "cid": "15530031759133653655",
                                "feature_id": "0x80c2c7c9657d7e4f:0xd785c19a71b23a97"
                            },
                            "information_and_tickets": [
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Stereoboard.com",
                                    "description": "TICKETS",
                                    "url": "https://www.stereoboard.com/jack-white-tickets/los-angeles",
                                    "domain": "www.stereoboard.com"
                                },
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Discover Los Angeles",
                                    "description": "MORE INFO",
                                    "url": "https://www.discoverlosangeles.com/event/2023/01/13/jack-white",
                                    "domain": "www.discoverlosangeles.com"
                                },
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Live Nation",
                                    "description": "MORE INFO",
                                    "url": "https://www.livenation.com/event/vvG10Z9x97ySQG/jack-white",
                                    "domain": "www.livenation.com"
                                },
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Discotech",
                                    "description": "MORE INFO",
                                    "url": "https://app.discotech.me/events/37328749-jack-white-at-belasco",
                                    "domain": "app.discotech.me"
                                }
                            ]
                        },
                        {
                            "type": "event_item",
                            "rank_group": 3,
                            "rank_absolute": 3,
                            "position": "right",
                            "xpath": "/div[1]/div[1]/div[1]/ul[1]/li[3]",
                            "title": "MTT Conducts Mahler 9",
                            "description": "(Nearby Event: Concerts & Music) Where: Walt Disney Concert Hall, 111 South Grand Avenue, Los-Angeles, California, United States, 90012 Read more on Desert Palms Hotel & Suites",
                            "url": "https://www.desertpalmshotel.com/events/los-angeles/los-angeles-philharmonic-and-michael-tilson-thomas-0",
                            "image_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTxbXX2LeF5n1X8rDNB41l1gZQLnS97Ux285Gj4iTN_mw&s=10",
                            "event_dates": {
                                "start_datetime": "2023-01-13T00:00:00+00:00",
                                "end_datetime": "2023-01-14T00:00:00+00:00",
                                "displayed_dates": "Fri, Jan 13, 8 PM – Sat, Jan 14, 12 AM"
                            },
                            "location_info": {
                                "name": "Walt Disney Concert Hall",
                                "address": "111 S Grand Ave, Los Angeles, CA",
                                "url": "https://www.google.com/maps/place//data=!4m2!3m1!1s0x80c2c64d9fbb11d3:0xb3728c2c3bff31b0?sa=X&hl=en&gl=US",
                                "cid": "12930551601747145136",
                                "feature_id": "0x80c2c64d9fbb11d3:0xb3728c2c3bff31b0"
                            },
                            "information_and_tickets": [
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Concertarchives.org",
                                    "description": "TICKETS",
                                    "url": "https://www.concertarchives.org/concerts/los-angeles-philharmonic-e2d66035-b041-422e-8a02-14eff9a0772f#ticket-section",
                                    "domain": "www.concertarchives.org"
                                },
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Feefreeticket.com",
                                    "description": "TICKETS",
                                    "url": "https://www.feefreeticket.com/los-angeles-philharmonic-mtt-conducts-mahler-9-walt-disney-concert-hall/5062686",
                                    "domain": "www.feefreeticket.com"
                                },
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Stagefronttickets.com",
                                    "description": "TICKETS",
                                    "url": "https://www.stagefronttickets.com/events/3890465/los-angeles-philharmonic-mahler-tickets-walt-disney-concert-hall",
                                    "domain": "www.stagefronttickets.com"
                                },
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Desert Palms Hotel & Suites",
                                    "description": "MORE INFO",
                                    "url": "https://www.desertpalmshotel.com/events/los-angeles/los-angeles-philharmonic-and-michael-tilson-thomas-0",
                                    "domain": "www.desertpalmshotel.com"
                                },
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Visit West Hollywood",
                                    "description": "MORE INFO",
                                    "url": "https://www.visitwesthollywood.com/events/mtt-conducts-mahler-9-01-13-2023/",
                                    "domain": "www.visitwesthollywood.com"
                                }
                            ]
                        },
                        {
                            "type": "event_item",
                            "rank_group": 4,
                            "rank_absolute": 4,
                            "position": "right",
                            "xpath": "/div[1]/div[1]/div[1]/ul[1]/li[4]",
                            "title": "Candlelight: Selections of Vivaldi’s Four Seasons with Orchid Quartet",
                            "description": "⭐ Candlelight concerts bring the magic of a live, multi-sensory musical experience to awe-inspiring locations like never seen before in Los Angeles. Get your tickets now to discover the music of... Read more on Fever",
                            "url": "https://feverup.com/m/98064",
                            "image_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSx5fEW375BNZxAIkiOHMonaVJ26BbnC9VXbC7vpv6Vvw&s=10",
                            "event_dates": {
                                "start_datetime": "2023-01-12T00:00:00+00:00",
                                "end_datetime": "2023-02-02T00:00:00+00:00",
                                "displayed_dates": "Jan 12, 6 PM – Feb 2, 9 PM"
                            },
                            "location_info": {
                                "name": "Immanuel Presbyterian Church",
                                "address": "3300 Wilshire Blvd, Los Angeles, CA",
                                "url": "https://www.google.com/maps/place//data=!4m2!3m1!1s0x80c2c77c145ca395:0xd77661ed9bbaa0b8?sa=X&hl=en&gl=US",
                                "cid": "15525704438554206392",
                                "feature_id": "0x80c2c77c145ca395:0xd77661ed9bbaa0b8"
                            },
                            "information_and_tickets": [
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Feverup.com",
                                    "description": "TICKETS",
                                    "url": "https://feverup.com/m/98064",
                                    "domain": "feverup.com"
                                }
                            ]
                        },
                        {
                            "type": "event_item",
                            "rank_group": 5,
                            "rank_absolute": 5,
                            "position": "right",
                            "xpath": "/div[1]/div[1]/div[1]/ul[1]/li[5]",
                            "title": "ACLA Inaugural Concert : Jessica Sandidge",
                            "description": "ACLA's Inaugural Concert features the power and beauty of Metropolitan Opera Soprano, Jessica Sandidge. Read more on Eventbrite",
                            "url": "https://www.eventbrite.com/e/acla-inaugural-concert-jessica-sandidge-tickets-484522217997",
                            "image_url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSYVt4jk509dAmvl5N1FZIjTyZedN-MS9Iun4JZvVAjfg&s",
                            "event_dates": {
                                "start_datetime": null,
                                "end_datetime": "2023-01-13T00:00:00+00:00",
                                "displayed_dates": "Fri, Jan 13, 7 – 10 PM"
                            },
                            "location_info": {
                                "name": "Colburn School",
                                "address": "200 S Grand Ave, Los Angeles, CA",
                                "url": "https://www.google.com/maps/place//data=!4m2!3m1!1s0x80c2c64d07ded115:0xe43b71a7183bc91d?sa=X&hl=en&gl=US",
                                "cid": "16445863426753546525",
                                "feature_id": "0x80c2c64d07ded115:0xe43b71a7183bc91d"
                            },
                            "information_and_tickets": [
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Eventbrite.com",
                                    "description": "TICKETS",
                                    "url": "https://www.eventbrite.com/e/acla-inaugural-concert-jessica-sandidge-tickets-484522217997",
                                    "domain": "www.eventbrite.com"
                                },
                                {
                                    "type": "information_and_tickets_element",
                                    "title": "Allevents.in",
                                    "description": "TICKETS",
                                    "url": "https://allevents.in/los%20angeles/acla-inaugural-concert-jessica-sandidge/10000484522217997",
                                    "domain": "allevents.in"
                                }
                            ]
                        }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}}

All POST data should be sent in the JSON format (UTF-8 encoding). The task setting is done using the POST method. When setting a task, you should send all task parameters in the task array of the generic POST array. You can send up to 2000 API calls per minute, each Live SERP API call can contain only one task.

Below you will find a detailed description of the fields you can use for setting a task.

Description of the fields for setting a task:

Field name Type Description
keyword string keyword
required field
you can specify up to 700 characters in the keyword field
all %## will be decoded (plus character ‘+’ will be decoded to a space character)
if you need to use the “%” character for your keyword, please specify it as “%25”;
if you need to use the “+” character for your keyword, please specify it as “%2B”

learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article

location_name string full name of search engine location
required field if you don’t specify location_code or location_coordinate
if you use this field, you don’t need to specify location_code or location_coordinate
you can receive the list of available locations of the search engine with their location_name by making a separate request to the https://api.dataforseo.com/v3/serp/google/events/locations
example:
London,England,United Kingdom
location_code integer search engine location code
required field if you don’t specify location_name or location_coordinate
if you use this field, you don’t need to specify location_name or location_coordinate
you can receive the list of available locations of the search engines with their location_code by making a separate request to the https://api.dataforseo.com/v3/serp/google/events/locations
example:
2840
location_coordinate string GPS coordinates of a location
required field if you don’t specify location_name or location_code
if you use this field, you don’t need to specify location_name or location_code
location_coordinate parameter should be specified in the “latitude,longitude,radius” format
data will be provided for the country the specified coordinates belong to
the maximum number of decimal digits for “latitude” and “longitude”: 7
the minimum value for “radius”: 199.9 (mm)
the maximum value for “radius”: 199999 (mm)
example:
53.476225,-2.243572,200
language_name string full name of search engine language
optional field
if you use this field, you don’t need to specify language_code
by default, language settings correspond to one of the local official languages of the specified location
you can receive the list of available languages of the search engine with their language_name by making a separate request to the https://api.dataforseo.com/v3/serp/{{low_se_name}}/languages
example:
English
language_code string search engine language code
optional field
if you use this field, you don’t need to specify language_name
by default, language settings correspond to one of the local official languages of the specified location
you can receive the list of available languages of the search engine with their language_code by making a separate request to the https://api.dataforseo.com/v3/serp/{{low_se_name}}/languages
example:
en
date_range string date range to get events for
optional field
if you do not use this field, we will return all events
possible values: today, tomorrow, week, weekend, next_week, month, next_month
os string device operating system
optional field
note that this API provides results for desktop only
choose from the following values: windows, macos
default value: windows
se_domain string search engine domain
optional field
we choose the relevant search engine domain automatically according to the location you specify
however, you can set a custom search engine domain in this field
example:
google.co.uk, google.com.au, google.de, etc.
depth integer parsing depth
optional field
number of results in SERP
default value: 10
max value: 700
Note: your account will be billed per each SERP containing up to 10 results;
thus, setting a depth above 10 may result in additional charges if the search engine returns more than 10 results;
if the specified depth is higher than the number of results in the response, the difference will be refunded automatically to your account balance
max_crawl_pages integer page crawl limit
optional field
number of search results pages to crawl
max value: 100
Note: the max_crawl_pages and depth parameters complement each other;
learn more at our help center
tag string user-defined task identifier
optional field
the character limit is 255
you can use this parameter to identify the task and match it with the result
you will find the specified tag value in the data object of the response

‌‌‌‌‌‌
‌‌As a response of the API server, you will receive JSON-encoded data containing a tasks array with the information specific to the set tasks.

Description of the fields in the results array:

Field name Type Description
version string the current version of the API
status_code integer general status code
you can find the full list of the response codes here
Note: we strongly recommend designing a necessary system for handling related exceptional or error conditions
status_message string general informational message
you can find the full list of general informational messages here
time string execution time, seconds
cost float total tasks cost, USD
tasks_count integer the number of tasks in the tasksarray
tasks_error integer the number of tasks in the tasks array returned with an error
tasks array array of tasks
        id string unique task identifier in our system
in the UUID format
        status_code integer status code of the task
generated by DataForSEO; can be within the following range: 10000-60000
you can find the full list of the response codes here
        status_message string informational message of the task
you can find the full list of general informational messages here
        time string execution time, seconds
        cost float cost of the task, USD
        result_count integer number of elements in the result array
        path array URL path
        data object contains the same parameters that you specified in the POST request
        result array array of results
            keyword string keyword received in a POST array
keyword is returned with decoded %## (plus character ‘+’ will be decoded to a space character)
            type string search engine type in a POST array
            se_domain string search engine domain in a POST array
            location_code integer location code in a POST array
            language_code string language code
in this case, the value will be null
            check_url string direct URL to search engine results
            datetime string date and time when the result was received
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
example:
2019-11-15 12:57:46 +00:00
            spell object autocorrection of the search engine
if the search engine provided results for a keyword that was corrected, we will specify the keyword corrected by the search engine and the type of autocorrection
                keyword string keyword obtained as a result of search engine autocorrection
the results will be provided for the corrected keyword
                type string type of autocorrection
possible values:
did_you_mean, showing_results_for, no_results_found_for, including_results_for
            item_types array types of search results found in SERP
possible item types:
event_item
            se_results_count integer total number of results in SERP
in this case, the value will be 0
this search engine does not indicate the total number of results
            items_count integer the number of results returned in the items array
            items array items in SERP
            ‘event_item’ element in SERP
                type string type of element = ‘event_item’
                rank_group integer group rank in SERP
position within a group of elements with identical type values
positions of elements with different type values are omitted from rank_group
                rank_absolute integer absolute rank in SERP
absolute position among all the elements in SERP
                position string the alignment of the element in SERP
can take the following values:
left, right
                xpath string the XPath of the element
                title string title of the result in SERP
                description string description of the results element in SERP
                url string relevant URL
                image_url string URL of the image featured in the element
                event_dates object dates when the event takes place
if there are none, equals null
                    start_datetime string date and time when the event starts
if time zone is specified in the event, value will be returned in the UTC format:
“yyyy-mm-ddThh-mm-ss+00:00”
example:
2019-11-15T12:57:46+00:00
if time zone is not specified in the event, unspecified local time will be returned in the following format:
“yyyy-mm-ddThh-mm-ss”
example:
2019-11-15T12:57:46
                    end_datetime string date and time when the event ends
if time zone is specified in the event, value will be returned in the UTC format:
“yyyy-mm-ddThh-mm-ss+00:00”
example:
2019-11-15T12:57:46+00:00
if time zone is not specified in the event, unspecified local time will be returned in the following format:
“yyyy-mm-ddThh-mm-ss”
example:
2019-11-15T12:57:46
                    displayed_dates string date or date range as it is displayed in SERP
                location_info object information about the event’s venue
if there is none, equals null
                    name string name of the event’s venue
                    address string address of the event’s venue
                    url string URL to the event’s venue on google maps
                    cid string google-defined client id
unique id of a local establishment;
can be used with Google Reviews API to get a full list of reviews
                    feature_id string the unique identifier of the element in SERP
                information_and_tickets array additional information and ticket purchase options
if there is none, equals null
                        type string type of element = ‘information_and_tickets_element’
                        title string title of the element
                        description string description of the element
                        url string relevant URL
                        domain string domain in SERP

‌‌